package cn.bdqn.demo2;

import cn.bdqn.demo2.entitiy.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Demo2Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Demo2Application.class, args);
        User aaa = (User) run.getBean("aaa");
        System.out.println(aaa.getUname());
        System.out.println(aaa.getAge());
    }

}
